<%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<jsp:useBean id="actionBean" scope="request" type="com.rupertjones.globalcron.web.HomeAction" />

<s:layout-render name="/WEB-INF/jsp/layout.jsp" title="Global Cron" subtitle="Home">
        <s:layout-component name="body">
        <h1>Enabled Jobs across all hosts</h1>
        <display:table name="actionBean.enabledJobs" id="job" requestURI="Home.action" class="rounded-corner">
            <display:column title="Name" property="name"/>
            <display:column title="Host" property="hostname"/>
            <display:column title="Timezone" property="timezone"/>
            <display:column title="Cron" property="cron"/>
            <display:column title="Scheduled" property="scheduled"/>
            <display:column title="Script" property="script"/>
            <display:column title="Next Fire (@Server Time)" property="nextFireTimeFormatted"/>
            <display:column title="Last Fire (@Server Time)" property="lastFireTimeFormatted"/>
            <display:column title="">
                <a title="Information on this job" href="InfoJob.action?job.id=${job.id}"><img align="right" src="resources/info.png" border="0"></a>
                <a title="Edit Job" href="EditJob.action?job.id=${job.id}"><img style="padding-right:10px;" align="right" src="resources/edit.gif" border="0"></a>
            </display:column>
        </display:table>
    </s:layout-component>
</s:layout-render>
